﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GISCore.Geometry
{
    [Serializable]
    public class GridIntersectPoint : Point
    {
        private Line _line;
        // The following two varibles are not good. we modify that later.
        private LinkedPoint _point;
        private int _count = 0;

        public Line getLine()
        {
            return _line;
        }
        public void setLine(Line line)
        {
            _line = line;
        }

        //constructor
        public GridIntersectPoint(double x, double y) : base(x, y)
        {
            _point = null;
        }
       
        public int getCount()
        {
            return this._count;
        }
        public void addCount()
        {
            this._count++;
        }

        public void setLinkedPoint(LinkedPoint point)
        {
            this._point = point;
        }
        public LinkedPoint getLinkedPoint()
        {
            return this._point;
        }
    }
}
